package elektra.plugin.core;

import java.util.HashMap;
import java.util.Map;

import com.google.common.base.Preconditions;


public abstract class AbstractCommand implements ICommand {

	private Map<String, Object> paramMap = new HashMap<String, Object>();
	private FunctionChain<ICommand, ICommand> resultChain = new FunctionChain<ICommand, ICommand>();
	public ICommand setParam(String name, Object value) {
         Preconditions.checkNotNull(name);
         this.paramMap.put(name, value);
         return this;
	}
	public FunctionChain<ICommand, ICommand> getResultListenerChain() {
		return this.resultChain;
	}

}
